package org.jeecg.modules.basedata.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.jeecg.entity.basedata.RentContract;

import java.util.List;

/**
 * @Description: 租赁合同
 * @Author: jeecg-boot
 * @Date:   2021-06-29
 * @Version: V1.0
 */
public interface RentContractMapper extends BaseMapper<RentContract> {

    List<RentContract> getAllContractInfo(@Param("projectId") String projectId);

    List<RentContract> getContractInfo(@Param("contractIds") List<String> contractIds,@Param("feeId") String feeId);

    List<RentContract> findPage(Page<RentContract> page,@Param("rentContract") RentContract rentContract);

    RentContract getNormalRoom(@Param("roomId") String roomId, @Param("floorId") String floorId);

    Page<RentContract> getContractList(@Param("page") Page<RentContract> pageList, @Param("projectId") String projectId, @Param("feeRuleId") String feeRuleId, @Param("roomId")String roomId, @Param("floorId")String floorId);

    Page<RentContract> queryContractFeeList(@Param("page") Page<RentContract> page,@Param("rentContract") RentContract rentContract);

    List<RentContract> selectByRentContract(@Param("rentContract") RentContract rentContract);

}
